package com.action.gulimall.product.service;

import com.action.common.utils.PageUtils;
import com.action.gulimall.product.vo.AttrRespVo;
import com.action.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.action.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author shilun
 * @email sunlightcs@gmail.com
 * @date 2021-06-08 17:38:25
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils baseList(Map<String,Object> params,String attr_type, Long catelogId);

    void saveAttrAndRelation(AttrVo attrVo);

    void updateAttrAndRelation(AttrVo attrVo);

    AttrRespVo getAttrDetailById(Long attrId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrGroupId);

    List<AttrEntity> getCanSearchAttrs(List<Long> pAttrIds);
}

